package com.vitech.javacertification.threads.sharedcell;

public class Exchange {
	public static void main(String args[]) {
		
		SharedCell cell = new SharedCell();
		Producer p = new Producer(cell);
		Consumer c = new Consumer(cell, 10);
		p.start();
		c.start();
		try {
			c.join();
		} catch (InterruptedException e) {
		}
		;
		p.setStop();
	}
}